/*
 * @Author: Wangtao
 * @Date: 2020-11-11 21:21:21
 * @LastEditors: Wangtao
 * @LastEditTime: 2020-11-19 15:45:12
 */
import { VuexModule, Module, Mutation, getModule, Action } from 'vuex-module-decorators'
import store from '@/store'
import { commonAction } from '@/utils/common'

@Module({ dynamic: true, store, name: 'callCard', namespaced: false })

class Call extends VuexModule {
  @Action
  public async getIvrLlst (data) {
    return commonAction({ url: '/call/action/cdr/ivrFlow/list', method: 'POST', data }).then(resp => {
      if (resp && resp.success) { return resp }
    }).catch(err => { console.log(err) })
  }
}

export const CallModule = getModule(Call)
